package com.example.cato_api.controller;

import com.example.cato_entity.entity.Ingredient;
import com.example.cato_entity.entity.Ingredient.Type;
import lombok.Getter;
import org.springframework.hateoas.RepresentationModel;

public class IngredientEntityModel extends RepresentationModel<IngredientEntityModel> {

    @Getter
    private String name;

    @Getter
    private Type type;

    public IngredientEntityModel(Ingredient ingredient) {
        this.name = ingredient.getName();
        this.type = ingredient.getType();
    }
}
